import request from '@/utils/request'

// 查询企业动态列表
export function listMovement(query) {
  return request({
    url: '/system/movement/list',
    method: 'get',
    params: query
  })
}

// 导出企业动态列表
export function exportMovement(query) {
  return request({
    url: '/system/movement/export',
    method: 'get',
    params: query
  })
}

// 新增企业动态
export function addMovement(data) {
  return request({
    url: '/system/movement/add',
    method: 'post',
    data: data
  })
}

// 修改企业动态
export function updateMovement(data) {
  return request({
    url: '/system/movement/update',
    method: 'put',
    data: data
  })
}

// 修改企业动态发布状态
export function updateMovementStatus(data) {
  return request({
    url: '/system/movement/updateStatus',
    method: 'put',
    data: data
  })
}

// 删除企业动态
export function delMovement(query) {
  return request({
    url: '/system/movement/delete/',
    method: 'delete',
    params: query
  })
}
